|
![](/i/fill.gif) |
> About every three years, I come to the conclusion that the Reorient macros
> require rolling in the reorientation, but the only time I see such a
> phenomenon is in hopelessly complicated code that I wouldn't have anyone
> else wade through....
Well, the reorient macro aligns an axis of the object with a new axis, but
it doesn't specify how much the object should be rotated *around* that axis
in the process. To reorient something and really know what it's going to
look like, you need to align to two axis. That's what I did with the code I
gave you, and since the matrix transformation requires all 3 axis (x,y,z) to
be redefined, I figured out which direction the 3rd axis should point by
doing a vector cross product (which finds a vector perpendicular to the two
vectors crossed).
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
![](/i/fill.gif) |